home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 001-100 / 001-025 / 012 / setalternate / poster next >
Text File  |  1995-03-17  |  3KB  |  61 lines

  1. Article 698 of net.micro.amiga:
  2. Relay-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site unisoft.UUCP
  3. Path: unisoft!lll-lcc!lll-crg!seismo!harvard!talcott!panda!genrad!decvax!ittatc!dcdwest!sdcsvax!ncr-sd!ncrcae!ncsu!jcz
  4. From: jcz@ncsu.UUCP
  5. Newsgroups: net.micro.amiga
  6. Subject: Alternate Images for Icons
  7. Message-ID: <3003@ncsu.UUCP>
  8. Date: 18 Feb 86 04:38:53 GMT
  9. Date-Received: 19 Feb 86 07:18:09 GMT
  10. Sender: jcz@ncsu.UUCP
  11. Organization: SAS Institute Inc
  12. Lines: 129
  13.  
  14. In making some enhancements to the Icons for Hack, I wrote a very simple utility
  15. that you may find useful.  Normally, the Icon editor only lets you create icons
  16. whos selected action is either to reverse the image or provide backfill.
  17. However, in the gadget structure for the Icon is the ability to put an alternate
  18. image as found in any gadget.  To use it you simply have to supply an alternate
  19. image and set the appropriate bits in the structure.  Unfortunately ICONED fails
  20. to provide an easy way to do this so I wrote a Q&D tool to combine two icons
  21. into a single one with the second being an alternate image for the first.
  22.  
  23. To use it, first compile the program (It works under Lattice, have no idea
  24. about MANX) and link it.
  25. Then create two icons for the one you want.  Make the first the normal image
  26. and the second the alternate image.  When saving them make sure you set the
  27. frame the same for both or the results will be an alternate image slightly
  28. out of wack (and I don't mean the debugger) with the first.  Lets assume
  29. the first is called 'primary' and the second 'alternate'.  At this point
  30. there will be four files on disk:
  31.     primary
  32.     primary.info
  33.     secondary
  34.     secondary.info
  35. Now run the SetAlternate program with
  36.    SetAlternate primary secondary
  37. The primary icon will now display the second one when you hit on it.  Note
  38. that since the image was copied, you can delete the second one ('secondary'
  39. in this case) without any effect.  Note however that ICONED does not know
  40. exactly what to do with the alternate image so you lose it if you edit the
  41. Icon.  Have no fear, just run the program again to reset the alternate.  Also
  42. there are no side effects from running SetAlternate over and over on the
  43. same icons (other than waste time).
  44.  
  45. --------------cut here ---- cut here ---- cut here ----------------
  46. --------------- end of program --------------
  47. If there is an Interest, I can provide several such tools for manipulating
  48. Icons.  I have an icon - ICONEXEC - that when you click on it opens up a
  49. window and executes the commands that are in the tool types.  I will be posting
  50. this in a day or two.
  51.  
  52. John A. Toebes, VIII
  53. 120-H Northington Place
  54. Cary NC 27511
  55. (919) 469-4210
  56. Usenet: ...!mcnc!ncsu!jcz
  57.  
  58. Disclaimer: My Amiga wrote the above on its own
  59.  
  60.  
  61.